//
//  ScProfileViewController.swift
//  weibo03
//
//  Created by mac on 16/9/19.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

class ScProfileViewController: ScVistorTableController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if islogin {
            addNavRightButton()
        }else
        {
            visitorView?.updateVisitorInfo(message: "登陆后，你的微博，相册，个人资料都会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }

        

    }
    private func  addNavRightButton()
    {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    //点击事件
    func pushAction() -> Void {
        let testVc = ScTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
     }


   }
